* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Arial', sans-serif;
    background-image: url(../img/backgroud.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.nav {
    width: 100%;
    height: 60px;
    background-color: rgba(255, 192, 203, 0.308);
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-wrap: nowrap; /* 保证导航元素不换行 */
}

.nav a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    margin-right: 10px;
}

.nav a:hover {
    background-color: rgba(255, 192, 203, 0.5);
}

.nav .space {
    flex-grow: 1;
}

.nav img {
    width: 70px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0; /* 防止图片被压缩 */
}

.container {
    display: flex;
    height: calc(100% - 60px);
    width: 100%;
}

.container-left {
    width: 25%;
    min-width: 280px;
    background-color: rgba(254, 174, 187, 0.549);
    padding: 20px;
    position: relative;
    flex-shrink: 0; /* 防止左侧栏被压缩 */
}

.container-left .card {
    width: 70%;
    max-width: 300px;
    background-color: rgba(255, 192, 203, 0.5);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(129, 128, 128, 0.5);
    padding: 20px;
    margin-left: 20%; 
    margin-top: 10%;    
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.container-left .card h3 {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.672);
    margin-bottom: 10px;
    text-align: center;
}

.container-left .card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
}
.container .container-left .card .counter {
    font-size: 24px;
    margin-top: 20px;
    color: rgba(83, 78, 78, 0.841);
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}
.container .container-left .card a {
    text-decoration: none;
    color: rgba(83, 78, 78, 0.841);
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.container .container-left .card a:hover {
    background-color: rgba(246, 182, 192, 0.686);
}

.container-right {
    flex: 1;
    background-color: rgba(255, 192, 203, 0.5);
    overflow: auto;
    padding: 20px;
}

.blog {
    width: 96%;
    margin: 20px;
    background-color: rgba(255, 192, 203, 0.5);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.blog a {
    display: inline-block; /* 保持原有链接样式 */
    text-decoration: none;
    color: rgba(83, 78, 78, 0.841);
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.blog a:hover {
    background-color: rgba(246, 182, 192, 0.686);
}

.blog .title {
    width: 100%;
    height: 50px;
    font-size: 30px;
    color: rgba(0, 0, 0, 0.672);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
}

.blog .date {
    width: 100%;
    height: 50px;
    font-size: 20px;
    color: rgba(241, 15, 147, 0.708);
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog .desc {
    width: 98%;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.672);
    line-height: 30px;
    text-indent: 2em;
}

/* 增强响应式适配 */
@media (max-width: 1200px) {
    .container-left .card {
        margin-left: 15%;
    }
}

@media (max-width: 992px) {
    .nav a {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .container-left {
        width: 35%;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .nav {
        height: auto;
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .nav .space {
        display: none;
    }
    
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .container-left {
        width: 100%;
        min-width: auto;
        padding: 20px;
    }
    
    .container-left .card {
        width: 60%;
        margin: 20px auto;
    }
    
    .container-right {
        width: 100%;
        min-height: 600px;
    }
}

@media (max-width: 480px) {
    .nav a {
        font-size: 14px;
        padding: 4px 8px;
        margin-right: 5px;
    }
    
    .nav img {
        width: 40px;
        height: 40px;
    }
    
    .blog {
        margin: 10px;
        padding: 15px;
    }
    
    .blog .title {
        font-size: 24px;
        height: auto;
        padding: 10px 0;
    }
    
    .blog .date {
        font-size: 16px;
        height: auto;
        padding: 10px 0;
    }
    
    .blog .desc {
        font-size: 16px;
        line-height: 24px;
    }
}